package tech.xs.auth.domain.bo.password;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import tech.xs.auth.domain.enums.AccountType;
import tech.xs.common.sys.domain.check.SysUserCheck;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Getter
@Setter
@ToString
public class InitPasswordBo implements Serializable {

    @NotBlank
    @SysUserCheck.UserNameCheck
    private String account;

    @NotBlank
    @SysUserCheck.PasswordCheck
    private String password;

    @NotNull
    private AccountType accountType;

}
